/*
 * touch.h
 *      Author: byron
 */

#ifndef TOUCH_H_
#define TOUCH_H_


#define TOUCH_WAIT_CALIB 3000 //czekanie na dotkniecie punktu kalibracji

#define MAX_RX_TOUCH 16
#define MAX_TX_TOUCH 16

#define TOUCH_PEN_PRESSED			1
#define TOUCH_PEN_RELEASED		0

#define TOUCH_HEADER_CMD									0x55
#define TOUCH_HEADER_REPORT								0x80
#define TOUCH_RESPONSE_SUCCESS						0x00
#define TOUCH_RESPONSE_CALIB_CANCELLED		0xFC
typedef struct sTouchPoint
{
	unsigned short x;
	unsigned short y;
	unsigned short penstate;
} TTouchPoint;

void vTouch_Init(void);

#endif /* TOUCH_H_ */
